package com.weimob.mcloud.wechatwork.customer.service.user.module.dto.customer.process.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 *
 *
 * @author jiawei.you01
 * @date 2022/9/1 21:21
 * @since 1.0
 */
@Getter
@Setter
public class CustomerProcessBaseDTO implements Serializable {

    @NotNull(message = "processId is not null")
    @ApiModelProperty("流程Id")
    private String processId;

    @NotNull(message = "processName is not null")
    @ApiModelProperty("流程名称")
    private String processName;

    @NotNull(message = "status is not null")
    @ApiModelProperty("流程状态 1:开启 0:关闭")
    private Integer status;

    @NotEmpty(message = "processAuthList is not empty")
    @ApiModelProperty("流程可见范围")
    private List<ProcessAuthDTO> processAuthList;

    @NotEmpty(message = "customerStage is not empty")
    @Size(max = 10,message = "customerStage size max 10")
    @ApiModelProperty("客户阶段")
    private List<CustomerStageBaseDTO> customerStage;
}
